package com.example.application

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.boot.runApplication
import org.springframework.data.jpa.repository.config.EnableJpaRepositories

/**
 * @author xiang
 * @Date 2022/9/8 16:38
 **/

@SpringBootApplication(
    scanBasePackages = [
        "com.example.library",
        "com.example.application"
    ]
)
@EntityScan(
    basePackages = [
        "com.example.library",
        "com.example.application"
    ]
)
@EnableJpaRepositories(
    basePackages = [
        "com.example.library",
        "com.example.application"
    ]
)
class Application

fun main(args: Array<String>) {
    runApplication<Application>(*args)
}